package Day09.ExerciseDemo02;

public class Person {
    private String name;
    private int age;

    public void setName(String name) {
        this.name=name;
    }

    public String getName() {
        return name;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getAge() {
        return age;
    }


    public void laught() {
        System.out.println("我叫"+name+"我今年"+age+"岁了，我喜欢哈哈哈哈");
    }

}
